Component({
  data: {
    selectedGender: 'male'
  },
  methods: {
    selectMale() {
      this.setData({
        selectedGender: 'male'
      })
      this.triggerEvent('genderChange', 'male')
    },
    selectFemale() {
      this.setData({
        selectedGender: 'female'
      })
      this.triggerEvent('genderChange', 'female')
    }
  }
})